
.SUFFIXES: .sh .h .c .cc .cpp

AR        = ar
AR_FLAGS  = crs

CXX       = g++
CXXFLAGS  = -std=c++11 -ggdb3 -Wall -Werror

BASE_DIR  = ../
INC_DIR   = -I$(BASE_DIR) -I$(BASE_DIR)/sim_muduo_lib/pubh -I$(BASE_DIR)/sim_muduo_lib/prih
LIB_DIR   = ../sim_muduo_lib/obj

CLIBS     = -L$(LIB_DIR) -lsim_muduo -pthread 
CLIBS    += 

BIN       = EchoServer EchoClient

all: $(OBJS)
	$(CXX) $(CXXFLAGS) $(INC_DIR) -o EchoServer EchoServer.cpp EchoServer_main.cpp $(CLIBS)
	$(CXX) $(CXXFLAGS) $(INC_DIR) -o EchoClient EchoClient.cpp EchoClient_main.cpp $(CLIBS)

clean:
	@-rm -rf $(BIN)
